﻿package com.swlz.config;



/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {
	
//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

	// 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
	public String appId = "2016101200669653";
	
	// 商户私钥，您的PKCS8格式RSA2私钥
    public String merchantPrivateKey = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDUIyovv1204n7q7o+yRHlukugw9NNiQrstldnHs49eEHleUVb+uj/Z1kKmHKaHfR1OeG+1krDZe2keF9xFsraPYP9X3Ae1hIWVU5tkSziEc8yBcSdttoFbKJeX58XmgowetjFhqrn+CXmvqt+nBqDj+3lxcQDsSMwFACTQDFqO96A/1dyYKJhOsS4PAssuMKWW/ZmhkulJLegpbZlVjVpEbw8PSu3e9PUtCQr0GX2A9I3BB/2zfneP48GlaYvIFUq1YCUJGLPbW1WYp67QsGKF2HbYGaoHTiNN0ftJFlIyJj+Y8NVwL0msrcalW+XCEyLl7CgbL5XT/1EcJsm9X5fnAgMBAAECggEBAKv4ddKPR9/DXTAGhOb3K5m/7gsB7frSLfseZ5XEsoyGvlz/g46sXeayEwWmZDmh64gZijWf3U3xBZ4nqaG25tgEwfrvnDBCZihPxsDfWcnGNhsZJ+WA9gx4M6wpb/0WB5E+EXojdPPDqqoF05kLfpJS4nhcK2tg+EN1gmJGIYOTLw341vJvvsoU5g4cCve8B0pPzzOz61yk/gOUhc8PUutiphPoGbHBSlA+6UrMIcPdY1dKdrM3ayKdAxRJGaEGjh4xOFGu301CBX6cl4p2Z3v4QZ6Skb3r+MwwX/b4yFthXij7Oea2DjzEvqnaw8Sk+kogAkzq+yFmL/X875fkz8ECgYEA//TqLWwTaAnM5L8O8pGtiZLYZny7ZSBSrs5jeHvdBxzHxw7QrecqPLP10AoNiPZcg4sKEkxPezGfSKgvKcFNiMV1W43VL91Gc5a66bXHIyHydEhIbNGGId/F9hbdFPqKm7WcsBM5U5uGu+6dBEfdTQhyMFeFIDlWKLDG8J1GJN0CgYEA1CxaLcm2qXTd4v2Goh/QGGaQUYqr9gdlBZUUzK6RIS7fq6gOZymovWZVriCRCnm2um6DsTTFcr2Y0+FMgr5sjmAE5DhY+3kBjowShIqEx/SwA+qn4AlE1N38Y1+Dremnnw7huGp90gyW5I7DmFqY1TbSEXPOgH4DUOnnvjIA0ZMCgYAG1K1vOuQlsaVDMYoflR2xfzbBPXDu2Pb77UwgSgXzC6SVPmL5USMCbbcQr0P/NLvxUsOZC2pPmlpq4PopPhxomwRvxhA7b8dSjGI+nHhNCrniuo8cQFc5DjTFRYTu62TJlQYyeMDd51eoKk0McTKJvMD3Y06NNpqDCXy1rSzTDQKBgQCkRz7/itoSdLlEgpYWu1kNO4Rsjlk84lbWrqpvHI6kSb3HFBUqzTeohi665t5GZR0VVnJC56AliiVlkGEELlqxFilTZ0mGVBfffhbsZrAOfic2sR6QOb0AsGw1qQO0yWAOqKAegN2woCzJBLzvHt6M36hg+PCfznHU2XakbeTyXwKBgQCuuhZR6PctE3p2g9gF5MhuYqLL4vSfw/AwTUkkS00y53zmdt+MEgdr2yepNt2vRrgBpnBs46ZQOPowAAbpYeRt1ugkuHAbxT/ohDRPqPsGgg6ntF/zQ5MzXKEWhPuY1UIgivnhf/cta80556QUTXoV54LoVeOrPVkAPhQ3GKs/+g==";	
	// 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public String alipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkNE8dPbOGuZKbPiKat2Kmx1QHKu47rzvYiP/Cflc+WF2ny9L/n6kqK8pJ3TSFIEaL/Iur58oEod5ZUiPMFbuMPJUDsqiwMkm5N+bra0cOKdgc9FcKPGGRQ4RPvzRQW+Tr/Q20kooV9fPYcrsgvANHADSqYr/ux62eYCEDbjAGGn1FdXFTi0OLuInm7Wu9koML64MImRR3noQc4xobNh+NVZuKm7qihZrjOmRN41hMJim4i/GaesuRPUPs/F7HYpJ1yZxeVfvYYEQbYW+Yl6cOA0vttM2gvs/naqxWyVEuGu3wayDICV/1hGem6Yuf7VNQ+I7oHPICLgFT1aMdgSKMwIDAQAB";

	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public String notifyUrl = "http://1.jlzhou.top/alipay.trade.page.pay-JAVA-UTF-8/notify_url.jsp";

	// 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public String returnUrl = "http://127.0.0.1:8080/project-M/return_url.jsp";

	// 签名方式
	public String signType = "RSA2";
	
	// 字符编码格式
	public String charset = "utf-8";
	
	// 支付宝网关
//	public static String gatewayUrl = "https://openapi.alipay.com/gateway.do";
	//支付宝沙箱环境
	public String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getMerchantPrivateKey() {
		return merchantPrivateKey;
	}

	public void setMerchantPrivateKey(String merchantPrivateKey) {
		this.merchantPrivateKey = merchantPrivateKey;
	}

	public String getAlipayPublicKey() {
		return alipayPublicKey;
	}

	public void setAlipayPublicKey(String alipayPublicKey) {
		this.alipayPublicKey = alipayPublicKey;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}

	public String getReturnUrl() {
		return returnUrl;
	}

	public void setReturnUrl(String returnUrl) {
		this.returnUrl = returnUrl;
	}

	public String getSignType() {
		return signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}

	public String getCharset() {
		return charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}

	public String getGatewayUrl() {
		return gatewayUrl;
	}

	public void setGatewayUrl(String gatewayUrl) {
		this.gatewayUrl = gatewayUrl;
	}
	
	
	


}

